package cn.jasonone.resolvers;

import cn.jasonone.views.PdfView;
import lombok.Data;
import org.springframework.web.servlet.View;
import org.springframework.web.servlet.view.UrlBasedViewResolver;

import java.util.Locale;

/**
 * PDF视图解析器
 * @author xujie
 * @version 1.0.0
 */
@Data
public class PdfResolver extends UrlBasedViewResolver {
    private String prefix;
    private String suffix;
    public PdfResolver() {
        this.setViewClass(PdfView.class);
    }

    @Override
    public View resolveViewName(String viewName, Locale locale) throws Exception {
        return super.resolveViewName(viewName, locale);
    }
}
